/*
 * Copyright (c) 2017. Visionet and/or its affiliates. All right reserved.
 * VISIONET PROPRIETARY/CONFIDENTIAL.
 */
package com.visionet.security.service;

import com.visionet.jumper.core.service.BaseService;
import com.visionet.security.domain.dto.UserDTO;
import com.visionet.security.domain.entity.User;
import org.springframework.stereotype.Service;

/**
 * @author TC.Ubuntu
 * @since 2017/7/5.
 */
@Service
public interface UserService extends BaseService<User, String> {

	/**
	 * 通过登录账户名查询user
	 * @param loginName
	 * @return
	 */
	User findByLoginName(String loginName);

	/**
	 * 新增用户
	 * @param user
	 */
	void addUser(UserDTO user);
}
